<?php

class View_Helper_Alternator extends Zend_View_Helper_Abstract
{
	protected $_calls = 0;
	
	public function alternator($args = array(), $reset=false)
	{
		if($reset) $this->_calls = 0;
		
		return  $args[$this->_calls++ % count($args)];
	}
}